FROM node:9.0
MAINTAINER keyu

RUN mkdir -p /usr/src/app
COPY . /usr/src/app
WORKDIR /usr/src/app

RUN echo "registry=http://registry.npm.taobao.org/" > ~/.npmrc \
    && npm i --unsafe-perm \
    && npm install

RUN node ./send_build_msg.js

EXPOSE 3000

ENTRYPOINT ["npm", "start"]